<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
	uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
	uri="http://richfaces.org/rich" prefix="rich"%><%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<div class="mainBackground">
	<div class="innerBackground">
<f:view locale="#{visitInfo.currentUser.locale}">
	<f:loadBundle basename="resources.VisionClickResources" var="msg"/>
	<jsp:include page="nav.jsp"/>
	<div class="table" style="width:960px;">
		<div class="tableHead" style="width:960px;"><h:outputText value="#{msg.AddSprint}"/></div>
	<h:form>
		<h:panelGrid border="0" columns="2" style="width:960px;">
			<h:outputText value="#{msg.SprintName}"></h:outputText>
			<h:inputText value="#{sprintBean.sprint.sprintName}" styleClass="inputText" style="width:400px;"></h:inputText>
			<h:outputText value="#{msg.SprintStartDate}"></h:outputText>
			<rich:calendar popup="true" value="#{sprintBean.sprint.startDate}"
			></rich:calendar>
			<h:outputText value="#{msg.SprintEndDate}">
			</h:outputText>
			<rich:calendar popup="true" value="#{sprintBean.sprint.endDate}"
			></rich:calendar>
			<h:outputText value="#{msg.SprintDesc}"></h:outputText>
			<h:inputTextarea value="#{sprintBean.sprint.sprintDesc}" styleClass="inputText" style="width:400px;height:100px;"></h:inputTextarea>
			<h:outputText value="#{msg.ChooseUserStory}"></h:outputText>
				<h:dataTable border="1" value="#{userStoryBean.dataModel}" var="userStory" width="400" rowClasses="row">
					<h:column id="column1">
						<f:facet name="header">
							<h:outputText value="#{msg.Name}"></h:outputText>
						</f:facet>
						<h:outputText value="#{userStory.userStoryName}" rendered="#{!userStory.abandoned}"></h:outputText>
					</h:column>
					<h:column id="column2">
						<f:facet name="header">
							<h:outputText value="#{msg.Priority}"></h:outputText>
						</f:facet>
						<h:outputText value="#{userStory.priority}" rendered="#{!userStory.abandoned}"></h:outputText>
					</h:column>
					<h:column id="column3" rendered="#{!userStory.abandoned}">
						<f:facet name="header">
							<h:outputText value="#{msg.Choose}"></h:outputText>
						</f:facet>
						<h:selectBooleanCheckbox value="#{userStory.selected}"></h:selectBooleanCheckbox>
					</h:column>
				</h:dataTable>
			<h:outputText value=""></h:outputText>
			<h:panelGroup>
				<h:panelGrid columns="2">
					<h:commandLink value="#{msg.Cancel}" action="showproject" styleClass="button"></h:commandLink>
					<h:commandLink value="#{msg.Finish}" action="#{sprintBean.createSprint}" styleClass="button">
							<f:param name="projectId" value="#{visitInfo.currentProject.projectId}"/>
					</h:commandLink>
				</h:panelGrid>
			</h:panelGroup>			
		</h:panelGrid>
		</h:form>
		</div>
	</f:view>
</div>
</div>
</body>
</html>